#ifndef INET_ADDRESS_H
#define INET_ADDRESS_H

#include <netinet/in.h>
#include <string>

class InetAddress
{
private:
    sockaddr_in _addr;

public:
    InetAddress(const std::string &ip, unsigned short port);
    InetAddress(const sockaddr_in &addr);
    const std::string ip() const;
    unsigned short port() const;
    sockaddr_in getInetAddress() const;
};

#endif